import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { EGuildWarehouseState } from "./EGuildWarehouseState";
type int = number;
//class SGuildWarehouseApply
    
    export  class SGuildWarehouseApply
    {
       

        public __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.playerId);
            arg1.writeString(this.name);
            arg1.writeString(this.uid);
            arg1.writeInt(this.itemCode);
            arg1.writeInt(this.unit);
            arg1.writeInt(this.amount);
            arg1.writeString(this.jsStr);
            this.state.__write(arg1);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.playerId = arg1.readInt();
            this.name = arg1.readString();
            this.uid = arg1.readString();
            this.itemCode = arg1.readInt();
            this.unit = arg1.readInt();
            this.amount = arg1.readInt();
            this.jsStr = arg1.readString();
            this.state = EGuildWarehouseState.__read(arg1);
            return;
        }

        public /* var */playerId: int;

        public /* var */name: string;

        public /* var */uid: string;

        public /* var */itemCode: int;

        public /* var */unit: int;

        public /* var */amount: int;

        public /* var */jsStr: string;

        public /* var */state: EGuildWarehouseState;
    }
